#pragma once
#include "VMValue.h"
#include "vmp.h"
#include <stack>
#include <string>
#include <unordered_map>

namespace yzrilyzr_vmp{
	EBCLASS(VMStackFrame){
	public:
	VMStackFrame * prev=nullptr;
	u_index returnAddress;
	std::unordered_map<std::string, u_index> namedLocalVariables;
	std::unordered_map<u_index, VMValue> localVariables;
	std::stack<VMValue> stack;

	};
}
